package ABC.Z314.KAOSHI.Z;

public class Jiashiyuan {
    String name;
    String sex;
    int age;
    public  Jiashiyuan(){}
    public  Jiashiyuan(String name ,String sex,int age){
        this.age=age;
        this.name=name;
        this.sex=sex;
    }
    public  void Jiashiyuan(Car t){
        t.qidong();
        System.out.println(this.name+"开着"+t.pailiang+"的车");
    }
    public  void Jiashiyuan(Plane t){
        t.qifei();
        System.out.println(this.name+"开着"+t.gaodu+"的飞机");
    }
    public  void Jiashiyuan(Tanke t){
        t.qidon();
        System.out.println(this.name+"开着"+t.mali+"的坦克");
    }
    public  void Jiashiyuan(Tuolaji t){
        t.qidong();
        System.out.println(this.name+"开着"+t.zaizhong+"的拖拉机");
    }
    public  void Jiashiyuan(Lunchuan t){
        t.qihang();
        System.out.println(this.name+"开着"+t.hangsu+"的轮船");
    }
}
